{% extends '../common/layout.html' %} {% block content %}
<div class="content">
    <div id="block-search" class="panel panel-default list-search dn">
        <div class="panel-body">
            <div id="form-search">
                <div id="search-search">
                    <div class="search-item col-md-6 mb20">
                        <div class="search-title">
                            <h5>申请类型</h5>
                            <h6>Type</h6>
                        </div>
                        <div class="search-input" id="field-search-type"></div>
                    </div>
                    <div class="search-item col-md-6 mb20">
                        <div class="search-title">
                            <h5>编号</h5>
                            <h6>NO.</h6>
                        </div>
                        <div class="search-input" id="field-search-formNumber"></div>
                    </div>
                    <div class="search-item col-md-6 mb20">
                        <div class="search-title">
                            <h5>审批状态</h5>
                            <h6>Status</h6>
                        </div>
                        <div class="search-input" id="field-search-approvalStatus"></div>
                    </div>
                    <div class="search-item col-md-6 mb20">
                        <div class="search-title">
                            <h5>申请人</h5>
                            <h6>Requester</h6>
                        </div>
                        <div class="search-input" id="field-search-requesterEmployeeId"></div>
                    </div>
                    <div class="search-item col-md-6 mb20" formId="1">
                        <div class="search-title">
                            <h5>业务名称简述</h5>
                            <h6>Activity Name Description</h6>
                        </div>
                        <div class="search-input" id="field-search-activityNameDescription"></div>
                    </div>
                    <div class="search-item col-md-6 mb20" formId="2">
                        <div class="search-title">
                            <h5>职位ID</h5>
                            <h6>Position ID</h6>
                        </div>
                        <div class="search-input" id="field-search-positionId"></div>
                    </div>
                    <div class="search-item col-md-6 mb20" formId="2">
                        <div class="search-title">
                            <h5>用人经理</h5>
                            <h6>Hiring Manager</h6>
                        </div>
                        <div class="search-input" id="field-search-hiringManager"></div>
                    </div>
                    <div class="search-item col-md-6 mb20" formId="2">
                        <div class="search-title">
                            <h5>申请日期</h5>
                            <h6>Request Date</h6>
                        </div>
                        <div class="search-input" id="field-search-requestDate"></div>
                    </div>
                    <div class="search-row search-submit">
                        <button class="btn common-form-btn" id="search-btn" type="submit">搜索</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="block-list" class="panel panel-default list-panel dn">
        <div class="panel-body">
            <table id="list-list" class="table table-bordered list-table table-striped mb0 dn">
                <thead>
                </thead>
                <tbody>
                </tbody>
            </table>
            {% raw %}
            <script id="template-list-header" type="text/template7">
                <th class="tac vam">
                    <h5>编号</h5>
                    <h6>No.</h6>
                </th>
                <th class="tac vam">
                    <h5>申请人</h5>
                    <h6>Requester</h6>
                </th>
                <th class="tac vam">
                    <h5>申请类型</h5>
                    <h6>Type</h6>
                </th>
                <th class="tac vam">
                    <h5>申请日期</h5>
                    <h6>Request Data</h6>
                </th>
                <th class="tac vam">
                    <h5>审批状态</h5>
                    <h6>Status</h6>
                </th>
                <th class="tac vam">
                    <h5>操作</h5>
                    <h6>Operation</h6>
                </th>
            </script>
            <script id="template-list-detail" type="text/template7">
                <tr data>
                    <td class="tac vam">{{format formNumber}}</td>
                    <td class="tac vam">{{format owner.chineseName}}</td>
                    <td class="tac vam">{{format form.formEnglishName}}</td>
                    <td class="tac vam">{{format this '$.getRequestDate'}}</td>
                    <td class="tac vam {{format this '$.getStatusClass'}}">{{format this '$.toApprovalStatus'}}</td>
                    <td class="tac vam">
                        <a href="request/{{format formId '$.getFormDetailUrl'}}?model=detail&formId={{format formId}}&id={{format id}}&backId={{format this '$.getCurrentPageId'}}&action=look" class="btn btn-link list-popover" type="button" update>查看</a>
                    </td>
                </tr>
            </script>
            <script id="template-list-header-1" type="text/template7">
                <th class="tac vam">
                    <h5>编号</h5>
                    <h6>No.</h6>
                </th>
                <th class="tac vam">
                    <h5>申请人</h5>
                    <h6>Requester</h6>
                </th>
                <th class="tac vam">
                    <h5>申请类型</h5>
                    <h6>Type</h6>
                </th>
                <th class="tac vam">
                    <h5>申请日期</h5>
                    <h6>Request Data</h6>
                </th>
                <th class="tac vam">
                    <h5>审批状态</h5>
                    <h6>Status</h6>
                </th>
                <th class="tac vam">
                    <h5>操作</h5>
                    <h6>Operation</h6>
                </th>
            </script>
            <script id="template-list-detail-1" type="text/template7">
                <tr data>
                    <td class="tac vam">{{format formNumber}}</td>
                    <td class="tac vam">{{format owner.chineseName}}</td>
                    <td class="tac vam">{{format form.formEnglishName}}</td>
                    <td class="tac vam">{{format this '$.getRequestDate'}}</td>
                    <td class="tac vam {{format this '$.getStatusClass'}}">{{format this '$.toApprovalStatus'}}</td>
                    <td class="tac vam">
                        <a href="request/{{format formId '$.getFormDetailUrl'}}?model=detail&formId={{format formId}}&id={{format id}}&backId={{format this '$.getCurrentPageId'}}&action=look" class="btn btn-link list-popover" type="button" update>查看</a>
                    </td>
                </tr>
            </script>
            <script id="template-list-header-2" type="text/template7">
                <th class="tac vam">
                    <h5>编号</h5>
                    <h6>No.</h6>
                </th>
                <th class="tac vam">
                    <h5>类型</h5>
                    <h6>Type</h6>
                </th>
                <th class="tac vam">
                    <h5>申请人</h5>
                    <h6>Requester</h6>
                </th>
                <th class="tac vam">
                    <h5>申请日期</h5>
                    <h6>Request Data</h6>
                </th>
                <th class="tac vam">
                    <h5>职位ID</h5>
                    <h6>Position ID</h6>
                </th>
                <th class="tac vam">
                    <h5>工作地点</h5>
                    <h6>Location</h6>
                </th>
                <th class="tac vam">
                    <h5>职位名称</h5>
                    <h6>Title Name</h6>
                </th>
                <th class="tac vam">
                    <h5>用人经理</h5>
                    <h6>Hiring manager</h6>
                </th>
                <th class="tac vam">
                    <h5>审批状态</h5>
                    <h6>Status</h6>
                </th>
                <th class="tac vam">
                    <h5>操作</h5>
                    <h6>Operation</h6>
                </th>
            </script>
            <script id="template-list-detail-2" type="text/template7">
                <tr data>
                    <td class="tac vam">{{format formNumber}}</td>
                    <td class="tac vam">{{format form.formEnglishName}}</td>
                    <td class="tac vam">{{format owner '$.getUser'}}</td>
                    <td class="tac vam">{{format this '$.getRequestDate'}}</td>
                    <td class="tac vam">{{format formDetail.positionId}}</td>
                    <td class="tac vam">{{format formDetail.workingLocationProvince}}{{format formDetail.workingLocationCity}}</td>
                    <td class="tac vam">{{format formDetail.positionTitle}}</td>
                    <td class="tac vam">{{format formDetail.hiringManager '$.getUser'}}</td>
                    <td class="tac vam {{format this '$.getStatusClass'}}">{{format this '$.toApprovalStatus'}}</td>
                    <td class="tac vam">
                        <a href="request/{{format formId '$.getFormDetailUrl'}}?model=detail&formId={{format formId}}&id={{format id}}&backId={{format this '$.getCurrentPageId'}}&action=look" class="btn btn-link list-popover" type="button" update>查看</a>
                    </td>
                </tr>
            </script>
            {% endraw %}
            <div id="block-alert" class="alert alert-danger mb0 fz16 tac dn"></div>
        </div>
    </div>
    <div id="block-pagination" class="list-pagination tac">
    </div>
</div>
{% endblock %} {% block scripts %}
<script src="/asstes/scripts/e-lanco/approval-list.js?{{timestamp}}"></script> {% endblock %}